package com.example.supplychainbackend.entity.plan.cost;

import jakarta.persistence.*;
import lombok.*;

import java.util.List;

@Embeddable
@Getter
@Setter
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CostInfoEntity {
    @OneToOne(cascade = CascadeType.ALL, orphanRemoval = true)
    @JoinColumn(name = "mo_id")
    CostCalcEntity costCalculation;

    @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)
    @JoinColumn(name = "cost_id")
    List<SettleRuleEntity> settlementRule;
}
